fetcher: set timeouts on HTTP connections
authorDaniel Drake <drake@endlessm.com>
Thu, 13 Feb 2014 16:57:10 +0000 (10:57 -0600)
committerDaniel Drake <drake@endlessm.com>
Thu, 13 Feb 2014 17:21:26 +0000 (11:21 -0600)
commit8ccd603cba3ad14561a1942b872f977308c36e92
tree1ca8de0e929f8c24093cc05a12ae22c9f98c5176
parent371cebf258abf1c731bf18edadb908b11b5717e8
fetcher: set timeouts on HTTP connections

We're seeing some hangs while ostree is fetching updates.
I imagine the fact that SoupSessionAsync has no timeout by default
could be the cause of this.

Set timeout values to 60 seconds, which is the default for the new
SoupSession API which we may switch to later.

https://bugzilla.gnome.org/show_bug.cgi?id=724310
src/libostree/ostree-fetcher.c